package short_semester.questionnaire_planet.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResponse {
    private Integer code = 0;
    private String msg = "";
    private Object data;
    
    public void error(String message){
        msg=message;
        code=1;
    }
    
    public void error(int code,String message){
        this.code = code;
        msg = message;
    }
}
